
package com.fire.web.modules.all.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.fire.web.modules.all.entity.ReceiveAreaModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * ReceiveAreaDao
 *
 * @author Matthew
 * @Date 2019-01-17 20:50
 */
@Mapper
public interface ReceiveAreaMapper extends BaseMapper<ReceiveAreaModel>{

	/**
	 * 根据实体查询列表
	 * @param model
	 * @return
	 */
	List<ReceiveAreaModel> selectListByModel(@Param("e") ReceiveAreaModel model);

	List<Map> getProvinceOpt();

	List<Map> getCityOrZoneOpt(@Param("parentid")String parentid);

	List getAddress(@Param("provinceCode")String provinceCode, @Param("cityCode")String cityCode, @Param("zonCode")String zonCode);
}
